<?php include('header.php'); ?>

<!-- additional javascript hear -->

</head>
<body>
<div id="wrapper">
<!-- menu -->
<?php include('menu.php'); ?>
<!-- end menu -->

<!-- navigator -->
<?php include('navigator.php'); ?>
<!-- nav end -->

 <div id="one_wide">
<?php
	if($this->session->flashdata('error'))
	{ 
		echo '<div class="error">' . $this->session->flashdata('error') . '</div>';
	}
	elseif($this->session->flashdata('success'))
	{
		echo '<div class="success">' . $this->session->flashdata('success') . '</div>';
	}
	
	echo validation_errors('<div class="error">', '</div>');
?>

<div class="item">
<img src="<?=base_url();?>application/images/alpicture1.png" />
<h3>อัลบั้มภาพทั้งหมดของ <?=anchor('profile' , $this->usermodel->getName($this->session->userdata('userId'))); ?></h3><hr />
<p>
	<?php
	if($album == false)
	{
		echo "<i>คุณยังไม่ได้อัพโหลดภาพถ่ายใดๆเลย...</i>";
	}
	else
		foreach ($album as $row):			
	?>
<a href="photo/<?=$row['photo_id'];?>">
<img width="62px" height="62px" src="<?=base_url() . 'application/userdata/profile_' . $row['user_id'] . '/photos/thumbs/' . $row['caption'];?>" alt="<?=$row['location']; ?>" >	
</a>
	<?php endforeach;?>
</p>
</div>
</div>
<!-- footer -->
<?php include('footer.php');?>
<!-- footer end -->
</div>
</body>
</html>